package com.openbravo.bean.crm;

import java.util.Date;

import cn.ekuma.data.dao.bean.I_AutoGeneratorStringKey;
import cn.ekuma.data.dao.bean.I_ModifiedLogBean;

public abstract class AbstractBond implements I_AutoGeneratorStringKey, I_ModifiedLogBean<String>{
	private String id;
	private Date lastModified;
	
	private String customerId;
	private Date createDate;
	private int state=0;
	private Date validityDate;
	private String memo;
	
	private String validityCode;//校验吗
	
	private String voucherNum;//卡号
    
    private Date useDate;//使用时间
    
    public final static int STATE_Unknown=0;//未启用，如批开未登记
	public final static int STATE_UseAble=1;//有效
	public final static int STATE_Back=2;//以退
	public final static int STATE_Invalid=3;//失效
	public final static int STATE_Loss=4;//挂失
	public final static int STATE_Used=5;//以用
    

	public String getVoucherNum() {
		return voucherNum;
	}

	public void setVoucherNum(String voucherNum) {
		this.voucherNum = voucherNum;
	}
	
	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public Date getValidityDate() {
		return validityDate;
	}

	public void setValidityDate(Date validityDate) {
		this.validityDate = validityDate;
	}


	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getKey() {
        return id;
    }

    public String getId() {
        return id;
    }
    
    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

    public void setKey(String key) {
        this.id=key;
    }

	public String getValidityCode() {
		return validityCode;
	}

	public void setValidityCode(String validityCode) {
		this.validityCode = validityCode;
	}

	public Date getUseDate() {
		return useDate;
	}

	public void setUseDate(Date useDate) {
		this.useDate = useDate;
	}
	
}
